package com.bjsxt.mapper;

import com.bjsxt.pojo.Role;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

public interface RoleMapper  {

    //查询所有角色实现
    @Select("select *  from  t_role")
    List<Role>   selectAll();

    Integer   insert(Role  role);

    //修改角色实现
    @Update("update t_role set rname=#{rname},rdesc=#{rdesc} where rid=#{rid}")
    Integer  update(Role role);

}
